import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import Unocss from 'unocss/vite'
import AutoImport from 'unplugin-auto-import/vite'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni({
      vueOptions: {
        reactivityTransform: true
      }
    }), 
    Unocss(),
    AutoImport({
      dts: 'src/typings/auto-imports.d.ts', // ⽣成类型声明⽂件，⾃动引⼊相关插件
      imports: ['vue', 'uni-app', 'pinia'], // ⾃动引⼊哪些内容
      dirs: ['src/composables'] // ⾃动导⼊composables⽬录下的模块
    })
  ]
});
